package 面向对象.实验六;

import java.util.TreeSet;

/**
 * @projectName: JAVA编程
 * @package: 面向对象.实验六
 * @className: test4
 * @author: hhy帅
 * @description: TODO
 * @date: 2021/11/7 22:37
 */
public class test4 {
    public static void main(String[] args) {
        TreeSet<Object> treeSet = new TreeSet<>();
        MyComparatorForName book1 = new MyComparatorForName("2","bb","bbb");
        MyComparatorForName book2 = new MyComparatorForName("1","aa","aaa");
        MyComparatorForName book3 = new MyComparatorForName("3","cc","ccc");
        treeSet.add(book1);
        treeSet.add(book2);
        treeSet.add(book3);
        System.out.println(treeSet);
    }
}
